<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Re_message extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$this->load->model('messagedata_m');
		$this->load->helper('url');
		if(@$_GET['count']==null){
			$_GET['count']=0;
		}
		$query= $this->messagedata_m->msg_SelectById((integer)($_GET['id']));
		foreach ($query->result() as $rs){
			$data['messageid']=$rs->messageid;
			$data['title']=$rs->title;
			$data['username']=$rs->username;
			$data['message']=$rs->message;
			$data['time']=$rs->time;
			$data['readauth']=$rs->readauth;
		}
		$this->load->view('re_message', $data);
	}


}
?>